package cn.gift.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description: MybatisPlusConfig
 * @date: 2023/4/24 14:42
 * @author: ZhaoLc
 * @version: 1.0
 */
@Configuration
@MapperScan("cn.gift.mapper")
public class MybatisPlusConfig {
    //配置分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
